<div class="bg-white"  nv-file-drop="" uploader="uploader" filters="picFilter">
    <div class="inline">
        <!--已保存上传的-->
        <div class="pu-item-con" ng-repeat="item in images">

            <div class="pu-item">
                <div class="pu-pic">
                    <span class="fa fa-plus pu-fa"></span>
                    <img ng-src="{{path}}{{item}}" class="pu-picture-pre-view" err-src="img/error.png"/>
                </div>
                <div class="block">
                    <div>
                        <div class="btn btn-sm btn-block btn-danger" ng-click="delFunc(item,info)">删除图片</div>
                    </div>
                </div>
            </div>

        </div>

        <!-- 需要保存上传的 -->
        <div class="pu-item-con" ng-repeat="item in uploader.queue">

            <div class="pu-item" ng-init="item.type=0">
                <div class="pu-pic">
                    <span class="fa fa-plus pu-fa" ng-if="!item.isSuccess"></span>
                    <img ng-src="{{app.image.temp}}{{item.fileName}}" class="pu-picture-pre-view" ng-if="item.isSuccess"/>
                </div>
                <div class="block m-b-sm">
                    <div ng-if="item.isSuccess">
                        <div class="btn btn-sm btn-block btn-danger" ng-click="del(item)">图片移除</div>
                    </div>
                </div>

                <div class="pu-process m-b-n">
                    <div class="progress bg-light m-b-n" ng-if="!item.isError">
                        <div class="progress-bar progress-bar-striped bg-success active" role="progressbar" ng-style="{ 'width': item.progress + '%' }" style="width: 100%;">{{item.progress}}%</div>
                    </div>

                    <div class="progress bg-light m-b-n" ng-if="item.isError">
                        <div class="progress-bar progress-bar-striped bg-danger active" role="progressbar" style="width: 100%;">上传失败</div>
                    </div>

                </div>
            </div>

        </div>



        <!-- 添加图片控件 -->
        <div class="pu-item-con" ng-if="(queueLimit>uploader.queue.length)">
            <div class="pu-item w-md">
                <div class="pu-pic">
                    <span class="fa fa-plus pu-fa"></span>
                </div>
                <div class="block">
                    <div class="pos-rlt">
                        <button class="btn btn-sm btn-block btn-info">点击选择图片</button>
                        <input type="file" ng-model="file" class="pu-file" nv-file-select="" multiple uploader="uploader" accept="image/gif,image/jpeg,image/jpg,image/png">
                    </div>
                </div>
            </div>
        </div>



    </div>
</div>

